<template>
	<view>
		<nav-bar   fontColor="#FFFFFF" title="收货单查看详情"></nav-bar>
		<uni-card mode="basic">
			<view class="title">公司名称：{{shippingData.customerName == null ? '暂无数据' : shippingData.customerName}}</view>
			<view class="title">公司编号： {{shippingData.customerNo  == null ? '暂无数据' : shippingData.customerNo}}</view>
			<view class="title">物品名称： {{shippingData.materialName}}</view>
			<view class="title">物品编号： {{shippingData.materialNo}}</view>
			<view class="title">订单编号： {{shippingData.orderNo}}</view>
			<view class="title">数量： {{shippingData.quantity}}</view>
			<view class="title">单位： {{shippingData.measUnitNo}}</view>
			<view class="title">日期： {{shippingData.createTime}}</view>
		</uni-card>
		<uni-card mode="basic" title="上架任务明细">
			<view v-for="(item,index) in getDataList">
				<uni-list>
					<uni-list-item :index="index+1"
						:title="'物品名称:'+item.materialName + '\n库位编号:'+item.locationNo"
						:note="'操作员:'+item.jobUserName + '\n'+ '日期:'+item.requstRecptDate" link="reLaunch"
						clickable>
					</uni-list-item>
				</uni-list>
			</view>
		</uni-card>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				shippingData:{},
				getDataList:[]
			}
		},
		onLoad(e) {
			console.log(JSON.parse(e.id))
			this.shippingData = JSON.parse(e.id)
			let opt = {
				url:'web/tWmsReciptIntoLocPlan/search',
				method:'POST'
			};
			let params = {
				reciptLineId: this.shippingData.id
			};
			this.$http.httpTokenRequest(opt,params).then(res => {
				this.getDataList = res.data.data
			})
		},
		methods:{
			
		}
	}
</script>

<style>
	.title{
		margin: 20rpx 0;
	}
</style>